package com.working.libview.widget.web

import android.app.Activity
import android.os.Handler
import android.util.Log
import android.webkit.WebView
import com.just.agentweb.core.web.AgentWebUIControllerImplBase
import java.lang.ref.WeakReference

class UIController(activity: Activity) : AgentWebUIControllerImplBase() {
    private val mActivity: WeakReference<Activity> = WeakReference(activity)
    override fun onShowMessage(message: String, from: String?) {
        super.onShowMessage(message, from)
        Log.i(TAG, "message:$message")
    }

    override fun onSelectItemsPrompt(
        view: WebView?,
        url: String?,
        items: Array<String?>?,
        callback: Handler.Callback?
    ) {
        // 使用默认的UI
        super.onSelectItemsPrompt(view, url, items, callback)
    }

}